/*
package com.cykj.web.controller.posbiz;

import com.cykj.common.annotation.Log;
import com.cykj.common.core.domain.AjaxResult;
import com.cykj.common.core.domain.entity.SysUser;
import com.cykj.common.core.domain.model.LoginUser;
import com.cykj.common.enums.BusinessType;
import com.cykj.common.utils.ServletUtils;
import com.cykj.common.utils.poi.ExcelUtil;
import com.cykj.pos.domain.BizPosMachine;
import com.cykj.pos.service.IBizMerchantService;
import com.cykj.pos.service.IBizPosMachineService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController
@RequestMapping("/xxl")
public class BizMachineImportController {

    private final IBizPosMachineService iBizPosMachineService;

    @Log(title = "用户设备管理", businessType = BusinessType.IMPORT)
    */
/*@PreAuthorize("@ss.hasPermi('terminal:posmachine:import')")*//*

    @PostMapping("/importData")
    public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
    {
        ExcelUtil<BizPosMachine> util = new ExcelUtil<BizPosMachine>(BizPosMachine.class);
        List<BizPosMachine> userList = util.importExcel(file.getInputStream());
        String message = iBizPosMachineService.importBizPos(userList, updateSupport);
        return AjaxResult.success(message);
    }
}
*/
